package com.zhhq.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhhq.mapper.GoodsMapper;
import com.zhhq.model.Goods;
import com.zhhq.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by HeChaobin on 2017-07-22.
 */
@Service
public class GoodsServiceImpl implements IGoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public List<Goods> selectGoods() {

        return  goodsMapper.selectAll();
    }

    @Override
    public List<Goods> search(String name) {
        return  goodsMapper.search(name);
    }
}
